package org.bulu.project.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 聊天记录表(ChatDetailed)实体类
 *
 * @author makejava
 * @since 2024-08-12 21:49:47
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChatDetailed implements Serializable {
    private static final long serialVersionUID = -71353732042908169L;
/**
     * 唯一主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
/**
     * 消息发送者
     */
    private Integer userId;
/**
     * 消息接收者
     */
    private Integer anotherId;
/**
     * 消息内容
     */
    private String content;
/**
     * 发送者是否删除
     */
    private Integer userDel;
/**
     * 接受者是否删除
     */
    private Integer anotherDel;
/**
     * 是否撤回
     */
    private Integer withdraw;
/**
     * 消息发送时间
     */
    private Date time;
}